package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RewardsMapper;
import com.ruoyi.system.domain.Rewards;
import com.ruoyi.system.service.IRewardsService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-19
 */
@Service
public class RewardsServiceImpl implements IRewardsService 
{
    @Autowired
    private RewardsMapper rewardsMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param rewardsid 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public Rewards selectRewardsByRewardsid(Long rewardsid)
    {
        return rewardsMapper.selectRewardsByRewardsid(rewardsid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param rewards 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Rewards> selectRewardsList(Rewards rewards)
    {
        return rewardsMapper.selectRewardsList(rewards);
    }

    @Override
    public List<Rewards> selectRewardsLists(Rewards rewards) {
        return rewardsMapper.selectRewardsLists(rewards);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param rewards 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertRewards(Rewards rewards)
    {
        return rewardsMapper.insertRewards(rewards);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param rewards 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateRewards(Rewards rewards)
    {
        return rewardsMapper.updateRewards(rewards);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param rewardsids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteRewardsByRewardsids(Long[] rewardsids)
    {
        return rewardsMapper.deleteRewardsByRewardsids(rewardsids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param rewardsid 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteRewardsByRewardsid(Long rewardsid)
    {
        return rewardsMapper.deleteRewardsByRewardsid(rewardsid);
    }
}
